package main.java.com.gdkj.enums;

/**
 * 客户端连接操作枚举
 *
 * @author: zw
 * @date: 2023/5/26
 **/
public enum ClientSocketOptionEnum {
    BIND("BIND", "绑定"),
    BIND_ACK("BIND_ACK", "绑定回复"),
    HEARBEAT("HEARBEAT", "心跳"),
    HEARBEAT_ACK("HEARBEAT_ACK", "心跳回复"),
    JOIN_ROOM("JOIN_ROOM", "进房"),
    JOIN_ROOM_ACK("JOIN_ROOM_ACK", "进房回复"),
    ON_MIC("ON_MIC", "上机"),
    ON_MIC_ACK("ON_MIC_ACK", "上机回复"),
    OFF_MIC("OFF_MIC", "下机"),
    OFF_MIC_LOADING("OFF_MIC_LOADING", "下机中"),
    OFF_MIC_ACK("OFF_MIC_ACK", "下机回复"),
    LEAVE_ROOM("LEAVE_ROOM", "离开房间"),
    LEAVE_ROOM_ACK("LEAVE_ROOM_ACK", "离开房间回复"),
    EDITFIRE("EDITFIRE", "调整火力"),
    FORTMOVE("FORTMOVE", "炮台左右转"),
    OPENFIRE("OPENFIRE", "发炮"),
    ON_SCORE("ON_SCORE", "上分"),
    ON_COIN_NOT_ENOUGH("ON_COIN_NOT_ENOUGH", "金币不足"),
    SEND_SEAT_INFO("SEAT_INFO","座位数据"),
    QUERY_COIN("QUERY_COIN", "金币查询"),
    QUERY_COIN_ACK("QUERY_COIN_ACK", "金币结果通知"),
    ON_SCORE_INTERNAL("ON_SCORE_INTERNAL", "上分-内部调用"),
    GEM_START("GEM_START", "宝石消消乐开始"),
    ENTER_ROOM_INFORM("ENTER_ROOM_INFORM", "进房通知"),
    CHANGE_INTEGRAL_NUM("CHANGE_INTEGRAL","积分变化"),
    PUSH_COIN_TURN("PUSH_COIN_TURN","推币机雨刷"),
    PUSH_COIN_ADD_COIN("PUSH_COIN_ADD_COIN","推币机投币"),
    PUSH_COIN_DROP("PUSH_COIN_DROP","推币机掉落")
    ;

    private String option;
    private String name;

    ClientSocketOptionEnum(String option, String name) {
        this.option = option;
        this.name = name;
    }

    public String getOption() {
        return option;
    }

    public void setOption(String option) {
        this.option = option;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static Boolean consoleLog(String type){
       if (
//               type.equals(BIND_ACK.getOption())
//       ||type.equals(BIND_ACK.getOption())
//               ||
               type.equals(HEARBEAT.getOption())
//               ||type.equals(EDITFIRE.getOption())
//               ||type.equals(FORTMOVE.getOption())
//               ||type.equals(OPENFIRE.getOption())
//               ||type.equals(QUERY_COIN.getOption())
//               ||type.equals(ON_SCORE.getOption())
       ){
           return false;
       }
       return true;
    }
}
